package com.aw.baselib.util

/**
 * @author : hzw
 * @date : 2020/4/14
 */
object SetUtil {
    fun saveAllowWifiCache(params: Boolean) {
        SPUtils.put("AllowWifi", params)
    }

    val isAllowWifiCache: Boolean
        /**
         * 是否允许wifi下缓存
         * @return
         */
        get() = SPUtils.get("AllowWifi", true) as Boolean

    fun saveAllowNotification(params: Boolean) {
        SPUtils.put("notifications", params)
    }

    val isAllowNotification: Boolean
        /**
         * 是否允许通知提醒
         * @return
         */
        get() = SPUtils.get("notifications", true) as Boolean
}